﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;

namespace JzSport.Api.Params
{
    public class EditProfileParams : IActionParams
    {
        public string NickName { get; set; }
        public int Sex { get; set; }
        public string City { get; set; }

        public void ParseQueryString(HttpRequest request)
        {
            this.NickName = request.QueryString["op:nickname"];
            this.Sex = Convert.ToInt32(request.QueryString["op:sex"]);
            this.City = request.QueryString["op:city"];
        }

        public void ParseForm(HttpRequest request)
        {
            this.NickName = request.Form["op:nickname"];
            this.Sex = Convert.ToInt32(request.Form["op:sex"]);
            this.City = request.Form["op:city"];
        }
    }
}
